import App from './App'
import Vue from 'vue'
import { toast, jump, sysInfo, getElementInfo, copyData, px } from '@/common/util'
import request from './common/api/request.js'
import login from './common/api/login'
import store from './store/index'
import share from './common/share'
import verify from './utils/verify.js'
import uView from './uni_modules/uview-ui'
Vue.use(uView)
Vue.prototype.$verify = verify
// #ifndef VUE3
Vue.config.productionTip = false
Vue.prototype.jump = jump
Vue.prototype.toast = toast
Vue.prototype.sysInfo = sysInfo
Vue.prototype.getElementInfo = getElementInfo
Vue.prototype.copyData = copyData
Vue.prototype.px = px
Vue.prototype.$http = request
Vue.prototype.login = login
App.mpType = 'app'
Vue.mixin(share)
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
